import types from './types';

const initState = [];

const usersReducer = (state = initState, action) => {
  // console.log(action);
  switch (action.type) {
    case types.GET_ACCOUNTS_LIST:
      return [...action.payload];
    default:
      return state;
  }
};

export default usersReducer;
